
<?php
	$this->extend('/Common/main_page');
?>

<?php
if(isset($posts)):
    $i = 0;
    foreach($posts as $post): ?>
<div class="news">
    <div class="title">
        <?php echo $post['Post']['title']; ?>
    </div>
    <div class="news_body">
        <?php echo $post['Post']['body']; ?>
    </div>    
    <div class="news_footer">
        Posted by <?php echo $authors[$i++]; ?> on <?php echo $post['Post']['created']; ?>
    </div>
</div>
<?php endforeach; ?>
<?php endif; ?>
